﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RZUIBaseCtrl
{   
    protected bool isShow;
    protected bool isLogicShow;     // 逻辑
    protected bool isLoadingRes;    // 加载
    protected bool isUIRelationShip;// 联系
    protected object userData;

    public virtual void CreateUI () { }

    public virtual void DestroyUI () { }

    public virtual bool Show()
    {
        return false;
    }

    public virtual void Hide() { }

    public virtual void Link(GameObject obj) { }

    public virtual bool CompareView(RZUIBaseView view) { return false; }

    public bool IsShow { get { return isShow || isLogicShow; } }

    public bool IsLogicShow { get { return isLogicShow; } }

    public bool IsUIRelationShip { get { return isUIRelationShip; } }

    public object UserData
    {
        get { return userData; }
        set { userData = value; }
    }
}
